﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WF.DAL;

namespace WF.Model
{
    public class EmployeeToRoleEntity : EntityBase<EmployeeToRole>
    {
        #region 构造函数

        public EmployeeToRoleEntity() : base() { }
        public EmployeeToRoleEntity(EmployeeToRole EmployeeToRole) : base(EmployeeToRole) { }
        #endregion

        #region 实现基类abstract属性

        public override string ID
        {
            get { return DbEntity.ID; }
            set { DbEntity.ID = value; this.SendPropertyChanged("ID"); }
        }

        public override string DisplayName
        {
            get { return DbEntity.ID; }
        }

        #endregion

        #region Public 属性

        public string EmployeeID
        {
            get
            {
                return DbEntity.EmployeeID;
            }
            set
            {
                DbEntity.EmployeeID = value; this.SendPropertyChanged("EmployeeID");
            }
        }

        public string DepartmentID
        {
            get
            {
                return DbEntity.DepartmentID;
            }
            set
            {
                DbEntity.DepartmentID = value; this.SendPropertyChanged("DepartmentID");
            }
        }

        public string RoleID
        {
            get
            {
                return DbEntity.RoleID;
            }
            set
            {
                DbEntity.RoleID = value; this.SendPropertyChanged("RoleID");
            }
        }
        #endregion
    }
}
